<template>
	<view class="mask">
		<u-popup v-model="show" mode="bottom" :mask-close-able="false" closeable @close="close"
			:mask-custom-style="{background: 'rgba(0, 0, 0, 0.8)'}" length="70%">
			<view class="u-p-l-20 u-p-r-20 u-p-t-60 text-center">
				<image src="https://api.codetime.com.cn/images/vp.png" mode="scaleToFill"
					style="width:345px;height:150px;"></image>
				<view class="u-font-xl text-bold text-brown" style="letter-spacing: 15upx; line-height: 100upx;">
					开通会员后可享受专属服务</view>
				<u-grid :col="2" :border="false">
					<u-grid-item>
						<image src="../../static/circle.png" mode="scaleToFill" style="width:32px;height:32px;">
						</image>
						<view class="grid-text">无限次数查看</view>
					</u-grid-item>
					<u-grid-item>
						<image src="../../static/box.png" mode="scaleToFill" style="width:32px;height:32px;">
						</image>
						<view class="grid-text">3D街景地图</view>
					</u-grid-item>
					<u-grid-item>
						<image src="../../static/earth.png" mode="scaleToFill" style="width:32px;height:32px;">
						</image>
						<view class="grid-text">全球5万+景区</view>
					</u-grid-item>
					<u-grid-item>
						<image src="../../static/voice.png" mode="scaleToFill" style="width:32px;height:32px;">
						</image>
						<view class="grid-text">专业语音讲解</view>
					</u-grid-item>
				</u-grid>

				<u-button style="width: 70%;letter-spacing: 20upx;" class="text-bold" type="warning" @click.stop="govip"
					size="medium">立即开通</u-button>
			</view>

		</u-popup>

	</view>
</template>

<script>
	export default {
		data() {
			return {
				show: true
			}
		},
		methods: {
			govip() {
				this.$goWindow('/pages/vip/vip')
			},
			close() {
				uni.navigateBack({
					delta: 2
				})
			}
		}
	}
</script>

<style>
	page {
		background: transparent;
	}

	.mask {
		position: fixed;
		left: 0;
		top: 0;
		right: 0;
		bottom: 0;
		/* #ifndef APP-NVUE */
		display: flex;
		/* #endif */
		justify-content: center;
		align-items: center;
		background-color: rgba(0, 0, 0, 0.1);
	}

	.content {
		width: 200px;
		height: 200px;
		background-color: #007AFF;
	}

	.text {
		/* #ifndef APP-NVUE */
		display: block;
		/* #endif */
		line-height: 200px;
		text-align: center;
		color: #FFFFFF;
	}
</style>
